package com.bailing.smstimerbutton;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends AppCompatActivity implements TimerButton.OnClickListener {

    private TimerButton mAutoTimer,mManualTimer;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mAutoTimer = findViewById(R.id.autoBtn);
        mManualTimer = findViewById(R.id.manualBtn);

        mAutoTimer.setOnClickListener(this);
        mManualTimer.setOnClickListener(this);
    }


    public void stop(View view) {
        mManualTimer.stop();
    }

    @Override
    public void onGetVerifyCode(View v) {
        // TODO 获取验证码
    }
}
